package com.yj.shipxy.mapper;

import com.yj.shipxy.entity.ShipError;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by zhengguanyong on 2017/12/27.
 */

@Repository
@Mapper
public interface ShipErrorMapper {

    @Insert("INSERT INTO ship_error_log " +
            "(`transport_info_id`, `user_id`, `plate_number`, `create_time`) " +
            "VALUES(#{item.transport_info_id}, #{item.user_id}, #{item.plate_number},now())")
    void createTransportJournal(@Param("item") ShipError item);

}
